<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head profile="http://gmpg.org/xfn/11"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>{{SITE_NAME}} {{DEBUG|yesno:"DEBUG ,"}}| {% block title %} {% endblock %}</title>
<meta name="description" content="Create your own microblog and connect with your friends. Post from the Web, by SMS, or from desktop clients. Add comments, use icons, link Webfeeds. Take it with you on your phone." />
<meta name="language" content="zh-CN, en" /> 
<!-- leave this for stats please --> 
<link rel="icon" href="/themes/{{DEFAULT_THEME|urlencode}}/favicon.ico" type="image/x-icon" />
<link rel='stylesheet' id='core'  href='http://{{DOMAIN}}/css/core.css?ver=2.50' type='text/css' media='all' /> 

<link rel='stylesheet' id='wp-pagenavi-css'  href='/themes/{{DEFAULT_THEME|urlencode}}/css/pagenavi-css.css?ver=2.50' type='text/css' media='all' /> 

<style type="text/css" media="screen"> 
<!-- @import url( /themes/{{DEFAULT_THEME|urlencode}}/css/style.css ); -->
</style> 
<link rel="stylesheet" href="/themes/{{DEFAULT_THEME|urlencode}}/css/style0.css" type="text/css"  id="cssfile" /> 
<script src="/themes/{{DEFAULT_THEME|urlencode}}/js/skin.js" language="javascript" type="text/javascript"></script> 
  {% if not request.mobile %}
    <style type="text/css">
      body {
        {% if view.extra.bg_image %}
        background-image: url("http://{{DOMAIN}}/image/{{view.extra.bg_image|urlencode}}");
        {% endif %}
        {% if view.extra.bg_color %}
        background-color: {{view.extra.bg_color}};
        {% endif %}
        {% if view.extra.bg_position %}
        background-repeat: {{view.bg_position}};
        {% endif %}
        {% if view.extra.bg_repeat %}
        background-repeat: {{view.extra.bg_repeat}};
        {% endif %}
      }
    {% block style %}
    {% endblock %}
    </style>
  {% endif %}

  {% for feed in feeds %}
  <link rel="alternate" type="application/{{feed.type}}+xml" title="{{feed.title}} ({{feed.type}})" href="{{feed.url}}" />
  {% endfor %}

  {% block head %}
  {% endblock %}

</head> 
<body {% block bodytag %}{% if area %}id="{{area}}" {% endif %}{% if not request.user %}class="global"{% endif %}{% endblock %}>
  {% block body %}
  {% endblock %}
  {% include 'common/templates/footnav.html' %}
  {% if DEBUG and 0 %}
  <div id="debug" class="clear">
    <a href="#dbg" onclick="$('div#dbg').toggle();">Toggle debug</a>
    <div id="dbg" style="display: none; text-align: left;">
      <pre><![CDATA[
      {% debug %}
      ]]></pre>
    </div>
  </div>
  {% endif %}

  {{component.best.analytics.footer|safe}}
</body>
</html>
